//
//  NSString+Alert.m
//  UEXSS_DianShangMoBan1
//
//  Created by broad zou on 12-8-6.
//  Copyright (c) 2012年 UEXSS. All rights reserved.
//

#import "NSString+Alert.h"
@implementation NSString (Alert)
-(void)showPrivateAlert{
    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"" message:self delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil];
	[alertView show];
	[alertView release];
}
- (void)showAlert {
	[self performSelectorOnMainThread:@selector(showPrivateAlert) withObject:nil waitUntilDone:NO];
}
-(void)showPrivateAlert:(NSString*)inTitle{
    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:inTitle message:self delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil];
	[alertView show];
	[alertView release];
}
- (void)showAlert:(NSString*)inTitle {
	[self performSelectorOnMainThread:@selector(showPrivateAlert:) withObject:inTitle waitUntilDone:NO];
}
@end
